package com.telit.firecommand.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @Auther amy
 * @Describe 实时天气数据
 */
@Data
public class NowWeather {

    @ApiModelProperty(value="天气现象文字")
    private String text;

    @ApiModelProperty(value="天气现象代码")
    private String code;

    @ApiModelProperty(value="温度，单位为c摄氏度或f华氏度")
    private String temperature;

    @ApiModelProperty(value="体感温度，单位为c摄氏度或f华氏度")
    private String feels_like;

    @ApiModelProperty(value="气压，单位为mb百帕或in英寸")
    private String pressure;

    @ApiModelProperty(value="相对湿度，0~100，单位为百分比")
    private String humidity;

    @ApiModelProperty(value="能见度，单位为km公里或mi英里")
    private String visibility;

    @ApiModelProperty(value="风向文字")
    private String wind_direction;

    @ApiModelProperty(value="风向角度，范围0~360，0为正北，90为正东，180为正南，270为正西")
    private String wind_direction_degree;

    @ApiModelProperty(value="风速，单位为km/h公里每小时或mph英里每小时")
    private String wind_speed;

    @ApiModelProperty(value="风力等级")
    private String wind_scale;

    @ApiModelProperty(value="云量，单位%，范围0~100，天空被云覆盖的百分比")
    private String clouds;

    @ApiModelProperty(value="露点温度")
    private String dew_point;

    @ApiModelProperty(value="数据更新时间（该城市的本地时间）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date last_update;

}
